package cn.datax.service.data.market.cata.dto;

import cn.datax.common.validate.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(value = "目录资源关系Model")
@Data
public class UserResourceInfoDto implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键ID")
    @NotBlank(message = "主键ID不能为空", groups = {ValidationGroups.Update.class})
    private String id;

    @ApiModelProperty(value = "资源ID")
    @NotBlank(message = "资源ID不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
    private String resourceId;

    @ApiModelProperty(value = "用户编码")
    private String userId;

    @ApiModelProperty(value = "资源类型")
    @NotNull(message = "资源类型不能为空", groups = {ValidationGroups.Insert.class})
    private String resourceType;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "订阅状态")
    private String isSubscribed;
}
